 <script language="javascript">
	function goback(){
		document.forms[0].action='<?=site_url("misc/homepage")?>';
		document.forms[0].submit();
	}
	function goaddnew(){
		document.forms[0].action='<?=site_url("job_management/goto_addnew_company")?>';
		document.forms[0].submit();
	}
	function deletecompany(deleteid){
		if(confirm("Do you want to delete?","Delete data")){
			document.forms[0].action='<?=site_url("job_management/delete_company")?>/'+ deleteid ;
			document.forms[0].submit();
		}
	}
</script>
	<h3 class="capture">Job Management</h3>
    <div id="wrap">
    <div id="tdd_selected">
    	<div class="dd_selected">Company</div>
        <div class="dd_view"><br />
        <form action="" method="post">
        	<table width="600" border="0" align="center" cellpadding="0" cellspacing="0" class="userview">
        		<tr>
                	<th>Logo</th>
        			<th>Name</th>
        			<th>Phone</th>
        			<th>Email</th>
        			<th>Contact</th>
        			<th>Website</th>
        			<th>delete</th>
        		</tr>
        		 
        		<?php foreach($all_company->result() as $company): ?>
                  <tr onmouseover="this.style.backgroundColor='#ffff66';" onmouseout="this.style.backgroundColor='#d4e3e5';">
                  	<td><img src="<?=base_url();?>images/company_logo/<?=$company->com_logo;?>" width="40" height="50"/></td>
                    <td><a href="<?=site_url("job_management/goto_update_company/$company->com_id")?>"><?=htmlspecialchars($company->com_name);?></a></td>
                   	<td><?=htmlspecialchars($company->com_phone);?></td>
                    <td><?=htmlspecialchars($company->com_email);?></td>
                    <td><?=htmlspecialchars($company->com_contactname);?></td>
                    <td><?=htmlspecialchars($company->com_website);?></td>
                    <td align="center"><img src="<?=base_url();?>images/recyclebin.png" width="20px" height="20px" onclick="deletecompany('<?=$company->com_id;?>','<?=$company->com_logo;?>')" /></td>
                  </tr>
              	<?php endforeach; ?>
            </table><br />
           <div align="center">
	           <input type="button" name="btnback" value="Back" class="bottom" onclick="goback()" />
	           <input type="button" name="btnaddnew" class="bottom" value="Add New" onclick="goaddnew()" />
	       </div><br />
        </form>
		</div>
        
    </div> 
      
  </div>


